<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<body>
	上传附件：
		<html:form action="/attachedUpload" method="post" enctype="multipart/form-data">
			<input type="file" name="file"/><input type="submit" value="上传"/>
		</html:form>
		您最近上传的附件：<br/>
	<c:forEach items="${attacheds}" var="data">
	<c:if test="${data.ext=='img'}">
		附件：<img src="${data.path}" width="20" height="20"/> <input type="button" name="${data.path}" onClick="javascript:parent.insertAttached('${data.path}','${data.ext}');" value="插入到编辑器"><br/>
	</c:if>
	<c:if test="${data.ext=='file'}">
		附件：<img src="<%=request.getContextPath() %>/img/file.png" width="20" height="20"/> <input type="button" name="${data.path}" onClick="javascript:parent.insertAttached('${data.path}','${data.ext}');" value="插入到编辑器"><br/>
	</c:if>	
	</c:forEach>
	</body>
</html>
